package list;

public class MyStack {
	private MyLinkedList stack=new MyLinkedList();
	
	public void push(Object o){
		stack.addLast(o);
	}
	
	public Object pop(){
		return stack.removeLast();
	}
	
	public String toString(){
		return stack.printAll();
	}
}
